<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<HTML>
	<HEAD>
		<TITLE>留言板反馈</TITLE>
		<LINK href="./jsp/manage/css/style.css" type=text/css rel=stylesheet>
		<script language="javascript" src="./jsp/manage/js/changedate.js"></script>
	</HEAD>

	<BODY topMargin=0 marginheight="0" marginwidth="0">

		<FORM name="myform" onSubmit="return CheckForm();" method=post target=_self
			action="<%=request.getContextPath()%>/feedbackManage.do?method=replys&feedbackID=${feedbacklib.feedbackID}">
			<TABLE class=border cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
				<TBODY>
					<TR class=topbg>
						<TD height=22 colSpan=2 align=middle></TD>
					</TR>
					<TR align=middle>
						<TD>
							<TABLE cellSpacing=1 cellPadding=2 width="100%" border=0>
								<TBODY>
									<TR class=tdbg>
										<TD align=right width=9%>
											<STRONG>问题内容：</STRONG>
										</TD>
										<TD colspan="10">
											${feedbacklib.comments}
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align="right" width="9%">
											<STRONG>提问人姓名：</STRONG>
										</TD>
										<TD colspan="10">
											${feedbacklib.name}
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align="right" width="9%">
											<STRONG>提问人邮箱：</STRONG>
										</TD>
										<TD colspan="10">
											${feedbacklib.email}
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align="right" width="9%">
											<STRONG>提问人IP：</STRONG>
										</TD>
										<TD colspan="10">
											${feedbacklib.ip}
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align="right" width="9%">
											<STRONG>留言时间：</STRONG>
										</TD>
										<TD colspan="10">
											${feedbacklib.commentsdate}
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align="right" width="9%">
											<STRONG>回复人：</STRONG>
										</TD>
										<TD colspan="10">
											${feedbacklib.admin}
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align="right" width="7%">
											<STRONG>回复时间：</STRONG>
										</TD>
										<TD colspan="10">
											${feedbacklib.replydate}
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align="right" width="7%">
											<STRONG>是否回复：</STRONG>
										</TD>
										<TD colspan="10">
											<c:choose>
												<c:when test="${reply=='reply'}">
													已回复
												</c:when>
												<c:otherwise>未回复</c:otherwise>
											</c:choose> 
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align="right" width="7%">
											<STRONG>所在部门：</STRONG>
										</TD>
										<TD colspan="10">
								          <select name="adminfrom">
											<c:choose>
												<c:when test="${reply=='reply'}">
													<option value="${department.sortMapId}" selected>
														${department.value}
													</option>
												</c:when>
											</c:choose> 
								            <logic:iterate id="w" name="newsfrominfolist" indexId="count">
								              <option value="${w[0]}">${w[1]}</option>
								            </logic:iterate>
								          </select>
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align="right" width="7%">
											<STRONG>回复内容：</STRONG>
										</TD>
										<TD colspan="10">
											<textarea name="reply" rows="10" cols="70">${feedbacklib.reply}</textarea>
										</TD>
									</TR>
								</TBODY>
							</TABLE>
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			<P align=center>
				<INPUT id="Save" style="CURSOR: hand" type="submit" value="添加" name="Save">
				<INPUT id="Cancel" style="CURSOR: hand" type="reset" value="取消" name="Cancel" 
					onclick="window.location.reload('<%=request.getContextPath()%>/feedbackManage.do?method=feedbacklist') " >
			</P>
			<BR>
		</FORM>

	</BODY>
</HTML>
